﻿using System.Collections;
using System.Collections.Generic;
using RedPointSystem;

public static class ItemSystem
{
    public static List<int> canLevelUpIds = new List<int>() {2, 8, 9, 13};
    public static List<int> canStarUpIds = new List<int>() {5, 8, 10, 13};

    public static void Init()
    {
        RedPointCheckMgr.GetInstance().Register(100, CheckCanLevelUp);
        RedPointCheckMgr.GetInstance().Register(200, CheckCanStarUp);
    }
    
    static bool CheckCanLevelUp(RedPointData redPointData)
    {
        if (redPointData.remindContion == -1)
        {
            return canLevelUpIds.Count > 0;
        }
        else
        {
            return canLevelUpIds.Contains(redPointData.remindContion);
        }
    }
    
    static bool CheckCanStarUp(RedPointData redPointData)
    {
        if (redPointData.remindContion == -1)
        {
            return canStarUpIds.Count > 0;
        }
        else
        {
            return canStarUpIds.Contains(redPointData.remindContion);
        }
    }
}